package cn.magic.ajax;

import lombok.Data;

@Data
public class AjaxResult {
    private Boolean success = true;

    private String message = "操作成功";

    public Object resultobj;

    public static AjaxResult me(){
        return new AjaxResult();
    }

    public AjaxResult setSuccess(Boolean success){
        this.success=success;
        return this;
    }

    public AjaxResult setMessage(String message){
        this.message = message;
        return this;
    }

    public AjaxResult setResultobj(Object resultobj){
        this.resultobj = resultobj;
        return this;
    }

}
